import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询纠纷事故的上报处理列表
export function getComplaintReportInfoList(query) {
    return request({
        url: '/accept/center/complaintReport/list',
        method: 'get',
        params: query
    })
}

// 获取纠纷事故的上报处理信息
export function getComplaintReport(complaintReportId) {
    return request({
        url: '/accept/center/complaintReport/' + parseStrEmpty(complaintReportId),
        method: 'get'
    })
}

// 新增纠纷事故的上报处理
export function addComplaintReportInfo(data) {
    return request({
        url: '/accept/center/complaintReport/add',
        method: 'post',
        data: data
    })
}

// 修改纠纷事故的上报处理
export function updateComplaintReportInfo(data) {
    return request({
        url: '/accept/center/complaintReport/update',
        method: 'post',
        data: data
    })
}

// 删除纠纷事故的上报处理
export function delComplaintReportInfo(complaintReportId) {
    return request({
        url: '/accept/center/complaintReport/delete/' + complaintReportId,
        method: 'get'
    })
}
